package com.mfangsoft.zhuangjialong.integration.usermanage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.mfangsoft.zhuangjialong.common.utils.stereotype.WriterRepository;
import com.mfangsoft.zhuangjialong.integration.usermanage.model.UserManagerDept;
@WriterRepository
public interface UserManagerDeptMapper {
    /**
     * 通过主键删除  
     *
     * @MLTH_generated
     */
    int deleteByPrimaryKey(Long id);

    /**
     * 插入数据  
     *
     * @MLTH_generated
     */
    int insert(UserManagerDept record);

    int insertSelective(UserManagerDept record);

    /**
     * 通过主键查询数据 
     *
     * @MLTH_generated
     */
    UserManagerDept selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserManagerDept record);

    /**
     * 通过主键更新数据  
     *
     * @MLTH_generated
     */
    int updateByPrimaryKey(UserManagerDept record);

    /**
     * 查看表中最大的一个id
     * @return
     */
    @Select("select max(id) from usermanager_dept")
	Long selectMaxId();

    /**
     * 查看人员类型列表
     * @return
     */
	List<UserManagerDept> selectUserManageDepts();
}